package com.xlb.web.controller;

import com.xlb.aspect.ApiOperationLog;
import com.xlb.utils.Response;
import com.xlb.web.service.NoticeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 小聋包
 * @date 2024/9/21
 * @Version 1.0
 */
@RestController
@RequestMapping("/notice")
@Api(tags = "公告")
public class NoticeController {

    @Autowired
    private NoticeService noticeService;

    @PostMapping("/info")
    @ApiOperation(value = "获取公告信息")
    @ApiOperationLog(description = "获取公告信息")
    public Response findNoticeInfo() {
        return noticeService.findNoticeInfo();
    }


}
